added table name aliases (-a). Test ok, but a bit simplistic