resolved issue with rails and pg database