Added table prefix capability to upload function.