fixed ID generation mechanism to be table specifc