Fist a bad variable assignment (just a mistake) in Database->query()
Fix another mistake in Database::tryToConnect() (use the right constant)