fixed postgres. added notes in ruby