Made file adding more robust for multiple projects, now able to run and delete projects without problem
added index on foreign keys