Try/except on db