Write to all tables, wrap DB access code in try blocks