Fixed a problem with sqldirect in which only a few records were being kept.