Added queries.js

queries.js - code to communicate with mongodb