update rails and use pg everywhere