further implmentation of the DB class