public static function getUserID($hash, $type)
    {
        self::removeExpired($type);
        $db = Database::connection();
        $uID = $db->fetchColumn("SELECT uID FROM UserValidationHashes WHERE uHash = ? AND type = ?", array($hash, $type));
        if (is_numeric($uID) && $uID > 0) {
            return $uID;
        } else {
            return false;
        }
    }