adding schema compatibility for postgresql