Update API and add more unit tests
Support to export DB data to CSV files by API
Update 'deploy' action API

Change-Id: Ia6581311ec9a8c1b912b867caf920afe1eb4ff84