Stars now update the database when changed.

The database is now being updated after the stars change.