message: Fix issues with database insert triggering instead of update (lib), closes
diff: @@ -2159,7 +2159,7 @@ error Database::saveModel(
  logger().debug(ss.str());
  if (model->ID()) {
  *session_ <<
  - "insert into time_entries(id, uid, description, "
  + "insert or replace into time_entries(id, uid, description, "
  "wid, guid, pid, tid, billable, "
  "duronly, ui_modified_at, "
  "start, stop, duration, "
  @@ -2193,7 +2193,7 @@ error Database::saveModel(
  now;
  } else {
  *session_ <<
  - "insert into time_entries(uid, description, wid, "
  + "insert or replace into time_entries(uid, description, wid, "
  "guid, pid, tid, billable, "
  "duronly, ui_modified_at, "
  "start, stop, duration, "
  