Patch mica_query.pages.inc to show all queries if user is admin

Also refactor query_access_rights a little bit.