Check the vacuum lines as well. I don't think you needed to disconnect them, but check that all injectors are connected.
I'd focus on the dangling connector, although you should also make sure it's not a connector that's there for an option that isn't installed on your vehicle. Dirt inside the connector is a good sign that is was never connected in the first place.