improve sql wall, support rand
Merge branch 'master' of https://github.com/wenshao/druid