fixes in db