wdc2 database sql with rows