Rewritten the modal box to store the answer from DB.