Added getDb method.