Log fetch errors in the database