added getDB method