Rewritten User class; user instances can be retrieved or created and
need to be saved; additional attribute 'username' introduced