Map errors and feed them into the database.