    // Dump all tables including schema but exclude the rows of data_values
    shell.exec(`mysqldump ${settings.DB_NAME} --ignore-table=${settings.DB_NAME}.django_session --ignore-table=${settings.DB_NAME}.user_invitations --ignore-table=${settings.DB_NAME}.data_values -r /tmp/owid_metadata.sql`)
    shell.exec(`mysqldump --no-data ${settings.DB_NAME} django_session user_invitations data_values >> /tmp/owid_metadata.sql`)

    // Strip passwords
    shell.exec(`sed -i -e "s/bcrypt[^']*//g" /tmp/owid_metadata.sql`)

    // Add default admin user
    await fs.appendFile("/tmp/owid_metadata.sql", "INSERT INTO users (`password`, `isSuperuser`, `email`, `fullName`, `createdAt`, `updatedAt`, `isActive`) VALUES ('<PASSWORD>$12$EXfM7cWsjlNchpinv.j6KuOwK92hihg5r3fNssty8tLCUpOubST9u', 1, '<EMAIL>', 'Admin User', '2016-01-01 00:00:00', '2016-01-01 00:00:00', 1);\n")

    await db.end()
}

dataExport()