Updated to handle tables in schemas other than dbo. Also, no longer keeps
exports of empty tables.