Expose a reference to pg library

Closes #3