Performs mongoose data migrations on document init