Changed Connection::insert_id() to Connection::query_insert_id() for consistency.