actually use sql library to generate the queries (when in rome, etc.)
got tests working with vagrant