added the functionality to connect to vfp tables.
cleaned up unused codes.