How often do you restart your server? XQL Files are only processed on server restart by default.
It could be that the sql is not recognized, probably because the server does not know about the xql file. You can reload the package from the package manager, to reread xql files after they have been changed.