I have a service which looks at a database boolean value, toggles the boolean value and then responds with the previous value. Eg: if the value was true, it is changed to false