fix for issue #256 " Database connection time out exceptions\
Merge pull request #257 from dennishendriksen/master

Database connection time-out fix