adding DB getDb() to api