fixed the code so it actually works!
added db
latest code sync prior to trying to switch to dynamodb