Fixed the db