Fix database timeout update issue