[WIP] Fix sql printing and selection