Fixes in db