Added database login. Login now functional