Fix mongodb + spring data compatibilities