Allowing for a pre connected db obj to be passed.

This is to allow use of a more complex connection setup to mongodb then the one that is built in.

Also included is a fix related to use of winston-mongodb with express-winston 0.2.1 where it is passing (in meta) an object without the hasOwnProperty function.