Various bug fixes

* Some VFP query problems resolved
* Various fixes to prevent memory crashes
* Re-enabled updating chgd.dbf table because vfp odbc works