Updated gems.
Re-ordered postgresql in deploy, use the command inline as it appears that I don't know how to write batch scripts for Postgres yet.