Added Query::insertAndGetId method