Added bit to wait until tables are active.
Added dynamo flag to indicate using dynamodb.