"Add DB API interface."

Signed-off-by: JiYou <jiyou09@gmail.com>
Update DB API.

Signed-off-by: JiYou <jiyou09@gmail.com>