First, I have completed the logging piece of the puzzle and thought it was pretty cool and easy to setup. You'll need to need to have the mysql client libraries installed along with libDBI. Once you have these, you can quickly build the module and add it to Apache.
You can find the source here
Next you can find some simple build instructions here
Last you need to add the following to httpd.conf, make sure to change the Server Login Info
LoadModule log_sql_module modules/mod_log_sql.so
LoadModule log_sql_mysql_module modules/mod_log_sql_mysql.so
LoadModule log_sql_ssl_module modules/mod_log_sql_ssl.so
See more info here on additional configurations and customizing
After you give apache a restart and go to one of your virtual hosts in the browser, you should see the tables auto build with the log information.
Coming up next is mod_vhost_dbi, this will allow you to store your virtual host config in MySQL