batch reading and writing from dynamodb