Change test to use new db.RowCount() API
Remove reference to MySqlDialect (fails for Oracle test), use generated sql instead.