Saving form to database and updating table