update rails to 4.1.2 & add pg gem