add text_file and data in sqlite database