Update default.rb

sudo apt-get install libpq-dev python-dev
sudo apt-get install postgresql postgresql-contrib python-psycopg2