initial progress on integration of SQLGateway