add database support

Signed-off-by: xiehuc <xiehuc@gmail.com>
use qqnumber as main key

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