Fix database.