if ($id > 0) {
            $where = [ "id = ?" => $id ];
            $this->db->update("sighting", $data, $where);
        } else {
            $this->db->insert("sighting", $data);