clean up a bit and truncate tables