form to db is working