db.js
  Added orderBy function to the query construct, which takes either a string or an array of strings and numbers, where strings represent field names and integers less than 0 represent DESC.