some minor fixes to update db