Converted createPermission to use the new query function