A SQL generator for use in Waterline Adapters