Adding pre-commit script
Adding a unit test to make sure generated queries don't have trailing whitespace