Adds update-item, query, scan. Refactoring