server database change and cli


Signed-off-by: jackychen <jackychen129@gmail.com>