Adapt DynamoDB sample to use util.Tables

Since doesTableExist and waitForTableToBecomeActive now exist in
util.Tables, adapt DynamoDB sample to use them.