working xml reading
adds progress bar and writing into database