added partitioning to all tables