This is the MOD_MYSQL_ACCESSLOG (for lighty 1.5+) code that allows LIGHTTPD VERSION 1.5 to write its logs to a DATABASE instead of disk files