Implemented DB auto update and auto save