Added sql with triggers for computed fields.