dont build rows/objects in basesql if rows/objects are empty