#671 New sql files for refactored permissions and handler for fetching only the friendly permissions