Migrating from dummy database to mongodb