FIX integer column names for older sqlalchemy version GH6340, GH7330

Closes #7330. Should enable to merge #7022 (#6340).