Correcting deprecated mysql_insert_id