Update example for use MongoDB as database