Add control index to showing table, plus a little code cleanup around database versioning
Some error handling for CSV uploads