adds document to the data model