wait for updateDB before fromDB