public function getEmails($offset, $count)
 {
     ArgCheck::isInt($offset);
     ArgCheck::isInt($count);
     $query = sprintf("SELECT email FROM %s ORDER BY id LIMIT %d, %d", self::TABLE_NAME, $offset, $count);
     return $this->database->fetchAll($query);
 }
 public function getNextJob()
 {
     $query = sprintf("SELECT * FROM %s WHERE next_round_gmt <= '%s' ORDER BY id LIMIT 1", self::TABLE_NAME, Time::now()->asSqlTimestamp());
     return $this->database->fetchAll($query);
 }