Revert "Revert "Updated database and login""

This reverts commit a82289ef9a0f06cb49e756c0990b2061b6ac924b.