Extract data from database using jdbc and save 
all the data into local files