增加了文件流的写入和与数据库的交互

Signed-off-by: josephstalin <lyz2356002@163.com>