Get rid of plain `except:`
Use logging instead of `print`
Line length
Clarify comment
Condense comment
Reduce indentation level
Update docstring

This had been obsolete since 6781f0b8a9b075e1c71f1f57a1e8506381c3b90e.
Simplify
Readability
Add some comments
Fix sqlite type capitalization
Make code a bit more readable
Use more appropriate default values
Merge pull request #2166 from unknown-horizons/maintenance

Maintenance