Code - Ranking is now added to db. Duplicate checking still needs to be added