Cleaned no more used permission queries