Updated database schema to support ratings