How can i store data in tiny db of buttons state switch on and off

Thread continues here