Adjusted sql file for EDGV version 3.0