Fixed a typo with variable names in database.py (updated_sentiments function)