Change schema to simple list, add _get_schema_dict() for cleaner code.
Change trigger and index names to improve uniformity.