Setup db for api