Updated model from database

Rating functionality in progress