How oysters can stop a flood