addNewDoc function.
Adding data to test db.
Calling backend to store data.