Improvements to customPages, added checkPermissions() to pantheraFetchDB