Generate SQL to a separate folder

This lets us avoid keeping generated files in version control

Change-Id: I74743ebcf2a01d29641b567bcdbb8e74e808bdcc
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/604