DBMS-side permission check and SphinxSE support