Fixed issue with db update timeout