Refactor: new _getSqlForTablesFull()

Signed-off-by: Marc Delisle <marc@infomarc.info>