Creating entity using mongodb adapter