changed user_id to integer in ratings table