Set the error handler to record errors to the database instead of only to log files.