Change mechanism for writing to sqlite