fixed the db