public function register($email, $pass, $name)
 {
     $salt = rand(1000, 5000);
     $mdpass = User::mdpass($pass, $salt);
     $activation = md5(rand(0, PHP_INT_MAX) . time());
     $query = "INSERT INTO users (email, name, mdpass, salt, activation) values ('{$email}', '{$name}', '{$mdpass}', '{$salt}', '{$activation}')";
     $this->db->exec($query);
     return $this->load($email);
 }