cli api: added get_db function