Fixes #14, edit now refreshes on a successful save.
Fixes #15, a validation error in a new row now carries over to the page refresh. Also improves on #14 by not requiring a refresh but instead replacing the MySQL query variable with values from the POST request