adding dynamodb.

more refactoring and compartmentalizing stack