fix database error

Signed-off-by: qiansen1386 <qiansen1386@gmail.com>