Fix the database error