real_escape DOW and enable query