changed so that the db is in the api app