Export table to CSV

Change-Id: I9fd6b3b1ad00a45910b7f90018b4849b8f7d278f