Automate postgres setup