Correction of mysql_insert_id

the command mysql_insert_id was related to the lastest database
connection
not to the object related one.