Added missing sql script to create the function DoesUserHavePermissionToGroup