Database connection time-out fix