数据库功能完善.

Signed-off-by: ryan <836045106@qq.com>