Fixing upload table issues