$DB_site to $vbulletin->db and comment out the log line leave the echo line. Doubt it would take much to fix the logging function but I dont have time right now.