Changing mechanism for saving sqlite