change daemon sql for better preformance