Fixes everything

Ha, basically handles empty sql values and values with single quotes. Also folds in cdb java client code so that it can compile based on your own laptop arch.