添加部分数据库相关操作.

Signed-off-by: jack <jack.wgm@gmail.com>