Reorganize code
Use explicit session for clearData(), in opposition to implicit session
for saveData()