Incrementing the _setup_next_sequence fails if the pk is a non integer. Added except clause that will catch TypeErrors and return 1 + the count of existing records