Updated schema to pg version