Fixed some bugs and added skeleton classes for DB/rating algos