Put the database logging back