Some fixes. DB handle freeup. Less error messages in log.
Merge pull request #100 from ernstchan/db-schema-change

Some fixes. DB handle freeup. Less error messages in log.