updated lifecontext api to response to latest changes in DB