Update aws.py to switch sessions to use a db backed cache.