Adding project foreign key to references
Fixed problem of inconsistence of references