add delete method to Table
fix duplicate records in db from double media insert bug