Added functionality to add users

Restructured the database a bit as well.