By the by, one major problem you have is that you are doing the INSERT sql operation *after* you display the existing records. So the new record you added will *NEVER* show up until you come back to the page.
You truly need to reverse those two operations. Do the INSERT at the very top of the page and then do the SELECT *after* that.
And if you would do "...ORDER BY ID DESC" in your SELECT, you would see the most recently added records first, including the one you just added if you put the INSERT first.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.