1) refactor DB class
2) add Session class
(9/08/2013)