Adding connection hook for mongodb
There are three leading params we don't care about, so the hooks are
using shift to discard.