add session support and refactor the db tables
Merge pull request #24 from SIMS-Topaz/aja/add_session_support

add session support and refactor the db tables