fix for named parameter in update query.

Fixed the previous pull now all test case work correctly, i did also a small cleanup.