Preliminary Rating function

Basic rating function, used placeholder values till we can figure out an
efficient database query system.