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