added ability to not show sql query errors (#877)