Fix category_id assignment, populate db with test data and generate ratings scaffold