Task 1: Fix db writes to add a new field for searching with case-insensitive queries, and change the dynamo db searches to search on that field
Task 2: Replace all table.scan operations with either a DynamoDB query method with pagination, or query with boto3 (since the AWS boto sdk provides low level pagination abstraction: https://docs.aws.amazon.com/code-library/latest/ug/python_3_dynamodb_code_examples.html#scenarios)
Source