code: public Date finish(String id, String resultType) {
          long now = System.currentTimeMillis();
          db.update("UPDATE TaskLogs SET resultType = ?, finishDate = ? WHERE id = ?",
                  resultType, now, Integer.parseInt(id));
          return new Date(now);
      }
docs: TaskManager use only