Wrote code to get data into sqlite data base