Users are now properly read from and written to db

Very poor error handling for sending incorrect data types or tokens
being invalid.