Postgres schema for data flow programming