Remove SQLForList and its usages

This reverts commit 82001d78440ba45b8ed84521a75dc2d19d4973e6,
"Unit tests for SQLForList" and
commit 505e9f8c4d7a90ad896e7103295a49980ddad69a, "Move SQL generation to DBObject"