set up to run on psql