add delete table function