Makes database function query_mongo return an empty list and a count of 0 when no results are found.
Adds a documents not found error when an index is found but no matching documents are found(this shouldn't really happen)