WIP, can now generate some basic SQL