Require pg once and mock with rewire.