fix postgresql class declaration