constructing data to be posted to the database

build data containing all necessary fields to create new document in the db