* Fix database conflict handling by replacing CONFLICT_FAIL with CONFLICT_REPLACE
* support for db version v21
* minor fix