Configuring mongodb