Fix MongoDB creation