add database info and fix connection bug

Signed-off-by: david <dawei@yunshan.net.cn>