The `activeforums_UserProfiles` table currently stands alone.  There is a `ModuleId` column which is always -1. Remove that. Relate to PortalUsers with cascade delete