Let me know if DatabaseConnection gives you connection timeout errors.
This commit should fix those, but it's possible it's not 100% effective.
Remember to record the error code and error message, which are printed
to the console, if you get an unexplained database error.