Update pebble.js

Changed trend option from default of 0 to use the value obtained from the mongo db databsae