added a method to dynamically post data

adding documents to the database became simple