wip: sql output