add db to api