opt database operation

Signed-off-by: yuanhuan <yuanhuan@tcl.com>