Simple querying using DB class