Fix RVM dependencies and add PostgreSQL specific setup instructions