adding http endpoint, global db