Add error reports and psql