Modified query to make use of Mongoose functionality

Keep Mongoose functionality directly mapped with Mongoose so that coral
can focus on goal of providing easier rest interfaces