https://infinitbility.github.io/sqlite-insert-or-update-statement-example/
SQLite insert or update statement example