store modifications in sqlite database