Change signature of some funtion in SQL module.
Moved tables defines to 'define' files
add XML creator/parser
Add unit test