update rails and ruby, use pg