update database flush sql

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