use correct base type and table name