Minor code optimisations to SQL in ebay lib file. Added and changed some comments.