DB fetch methods and some basic tests