Fixing database.