Multiple fixes
Added Main_UpdateXML
Database now work with arguments