Added db tests