Updating database tables from xml