cleaned upp datalen and fixed a memory leak
Removed the warnig that was show on query time out