Replaced const-reference with rvalue in insert/update functions