Updated upsertProjectAllocation to update with id