database timeout fix