edit form and database