This is the MOD_MYSQL_ACCESSLOG code that allows LIGHTTPD to write its logs to a DATABASE instead of disk files