Fix bugs on single database parameter.
Fix a Python 3.4 compatibility issue.