Fixed sequence queries. Added initial UID FETCH support.