library in ruby with postgresql