Store only error message in the database