store final form data to db