commented getDb wrapper