update rails and use pg