You should make 2 things.
1.Add user name to the methods
LegacyDb.SetPropertyValues(PageContext.PageBoardID, UserMembershipHelper.ApplicationName(), this.currentUserID, userProfile.UserName,
settingsPropertyValueCollection);
LegacyDb.SetProfileProperties(
string connectionString,
[NotNull] int boardId,
[NotNull] object appName,
[NotNull] int userID,
[NotNull] string userName,
[NotNull] SettingsPropertyValueCollection values,
[NotNull] List settingsColumnsList,
bool dirtyOnly)
And remove LegacyDb.UserList dependency.
2. Drop the FK.
[FK_{objectQualifier}UserProfile_{objectQualifier}User] foreign key (UserID) references [{databaseOwner}].[{objectQualifier}User]