mongo with device gem