removed getDb method