Updates createUser() to reflect database change
Cleans up code and adds a few comments