Fixed stuff related to database_log