added better error logging using winston,
added base schema using mongoose schema extend