Very basic SQL generation
Clean up and use a data source