changed how login.php decides which db creds to use