fixed bug with table data persisting after login

closes #31 

@kevlarkevin: can you review?