Remove some deprecated uses of getConnection().