fixed error in PostgreSQL schema generation