Fixed the database