Userdb

Closes #16 and closes #12