add postgres check class