postgres works, debug to show sql, better failure report