add form and save to database