Clear out the table after synch, also tidy up