Added getDB() method