creating mongo backend