added db support for toggling boolean status