example of implementation mongodb in rails