added code to parse,extract and save data to the db