Remove some deprecated uses of getConnection().
Fix tests.
Merge pull request #173 from csmith/master

Remove some deprecated uses of getConnection().