Add get connection helper to abstract migration.