fixed the database