Disable debugging on production environment

-disable debugging on production environment
-add getReference method in Mongo model