Fix: getConnection now connects properly