added db to api