Bobg is working on most of this set of tasks:

get rid of ufile, review tables (I see unique constraints on columns that can take null), use cascades to remove uploads, ...

Specifically: