CVE exceptions fix.

While inserting info about CVEs attached to the packages, we must explicitly define LAST_INSERT_ID in MySQL query, so the mysql_insert_id() will receive correct id.