Change connection type, also index objects by ID for faster lookup