public function __construct($request)
{
$this->loadConfig();
$this->initDB();
if ($this->isValidWorker() == false) {
echo "Not valid worker";
exit(1);
} else {
$this->insert("UPDATE Worker SET lastRequestTime = now() WHERE apiKey = {$this->apiKey}");
}
parent::__construct($request);
}