updated front end and cache to db interaction