BUG: Replaced extendedSQL/buildSQL with DataList as per ticket 8183

Raising to resolve ticket 8183 a pull request for the CMS will also be raised

http://open.silverstripe.org/ticket/8183