updated db.py to include rotten tomato function