Create error message and store it in database, when writing too many rows.