Complete InsertQuery impl with some Rust limitations