fix bug that failed to get double data from file

Signed-off-by: feixiaoxing <feixiaoxing@163.com>
add db.c

Signed-off-by: feixiaoxing <feixiaoxing@163.com>