Include postgresql in defined types before using class variables

Fixes #14