Updated database scheme for authentication.