SQLite Insert and Update Customization