Clean up edit.php and bugfix on event.php

* Single prepared statement for edit
* Fix date edit
* No more 'resubmit form' when you click attend then refresh