Changes to first script for .dbf files