Added a tear-down function in tpch_prepare

Shuts down postgres server gracefully before any exit from the
script