parse files to db