Attempt at avoiding busy database errors