Cleaned up, added triggers to partition tables