added wordid field back to json serialization
created session table