Fixed global reference error to setupDynamoDB functions
Fixes crash on first log in