App rails api + mongodb