Set up mongodb configuration