Hello,
Do you want to refresh the page or update records you want to display in your page then after submitting data to database you have to call retrieve connection from database. It will give updated records data with newly added record also included in that result.
Above rule will fire always when we try to submit the record to database. If the record submitting fails also it will give success message. For this we have to write the code to get the record is submitted successfully or not.