adapter: getConnection() replaced with query()