Moved static postgres methods to parent classes.