write file into database