Wip/sql validate

Work in progress; need to redo the base atoms and reify the type mappings in the JDBC spec. Best to merge this in first.