INSERT INTO
users (Username, Password, EmailAddress)
VALUES
(#user.Name#, #password#, #user.EmailAddress#)
UPDATE users SET Disabled = 1 WHERE username = #value#
INSERT INTO
signon (SessionToken, Username, LastSignOnDate)
VALUES
(#token#, #username#, NOW())
UPDATE signon SET LastSignOnDate = NOW()
WHERE SessionToken = #value#
DELETE FROM user_roles WHERE UserID = #Name#
INSERT INTO user_roles (UserID, RoleType)
VALUES(#username#, #role#)
UPDATE users
SET EmailAddress = #EmailAddress#
WHERE Username = #Name#
UPDATE users
SET EmailAddress = #user.EmailAddress#, Password=#password#
WHERE Username = #user.Name#
DELETE FROM signon WHERE Username = #value#
DELETE FROM signon