Merge pull request #124 from nperrier/master

Fix log type option for Database class