Fixed syntax issue with postgres class declaration