[MIN] Use of the $scope.q param to query mongodb