stats view to new schema