Provides mongoose support for storing functions