Fixed logging in/new user bugs

Also renamed the database GroupData