Added getInsertId to QueryInterface

Change-Id: I9cf20313a6d5bea1526aa4d03bf0cb19bac0790b
ClaimInserter now obtains the insertion id needed to insert the snaks

Change-Id: Ieed97ed809f2b21f8e56087c72a0db62374b676c