Clean up database debug logging