Update manager service

I just close old PR https://github.com/sonata-project/SonataMediaBundle/pull/543 and I create new here.

This patch work for https://github.com/sonata-project/SonataMediaBundle/issues/563
And fix the MongoDB manager.