/**
Instantiate class
@param $db object
@param $table string
@param $ttl int
**/
function __construct(\DB\SQL $db, $table, $ttl = 60)
{
$this->db = $db;
$this->engine = $db->driver();
$this->table = $table;
$this->fields = $db->schema($table, $ttl);
$this->reset();
}