replaced sqldf with RSQLite and RODBC