[FIX] XQuery Update: correct numbering of database updates
[FIX] XQuery, SQL Module: reject arguments with empty sequences