Added cleardb command and addtestdata api command