Init the connections and devices hashes