fixing errors in db host object