Fix up schema for postgres