add db to url
resove database enpoint and use in request