added config and mongodb dependency