WIP: sql build script.