Authentication code moved to new class, DB altered, and user list created on /register