better DB updates (with a timeout)