Changed ChainCodeID to be an INT.

Fix mismatch of ChainCodeID to be INT in all tables and relations.