Simplifying and fixing db session handling
Version bump to 1.0.6 and updating CHANGES.txt