get db client with api key