added db abstration tests