use apt-get for postgresql

Use apt-get for PostgreSQL so that it doesn't keep breaking the install.