fixes in db utils and another staff