Fixed the private updateAttributes funtion in DynamoDB, and added tests

It seems there was some missing code in the DynamoDB function to update the attributes on an item in a table, so I've added it in and surrounded it with a couple of tests.