added db tests