Use mongoDB like this: require('mongoq')('testdb').collection('users').find(function(err, cursor){});