Added backend and webservice for toggling records