Test script using Flat File

 

Test script using DB