configuring mongo backend