added session table, tidied up XML schema definitions