schema changes for star. function added for toggling star state. Minor code cleanup