integrating psql, orders support