Rakefile and refactoring
Require pg