Added the model code for creating a new user.

The user is created with the privilege value of 1000. Admin privilege can be set only by other administrators.
Added the latest sql file.