migrating AbstractQueryResult from legacy DB lib