rest + mongodb impl continued..