Fixed error using test database. Now truncates correctly.
Added total entries in database to confirm uploads adding, not overwriting.