Database Updates and Login Functionality