Completed dbf2db and bug fixes