Project Hierarchy Data Fix

First of a couple of schema modification for 1.3.

This fixes an issue where the project hierarchy table can contain duplicate entries.