Persist errors in the database
Persist errors in to the database