Temporary fix getDb method