fix for primary autoincrementing keys