Add Function tables and functionality

Update UserProfile and Membership relationship.