Fixed nosql database store & fetch functions

* Added fetch funtion to nosql database
* Fixed fetch data bug