Implemented table creation

A dynamoDB table should now be created during server startup if it
doesn't exist. Also cleaned up some code.