public function prepare()
{
if (empty($this->db)) {
$this->db = \Scalr::getDb();
}
if (empty($this->params)) {
$this->prepareTemporary($this->parseIntervals($this->config()->intervals_attempts));
}
if (empty($this->stmt)) {
$this->prepareStatement();
}
}