Revert "update rails and remove pg for opsworks demo"

This reverts commit 546f3ec61a659734b49edccededf4eb27cdaded6.