Corrected ordering for fields in Postgres tables