Fix the database schema