database migration for mongo db