color change, save state on rotate and save userdat onupdate db version