Added check for single-column primary key