Quick & dirty fix for queries starring and unstarring permissions