Split SQL queries into functions i.e selectAll, insert. Added delete all functionality. Added 'ajax-like' display of table results after form submission so you can see what has been added to the table.