Updated linq insert function. Added an overload function to return insert id.