writing stuff from form into database
working version with form inputting data to db