Eddited database schema and implemented ranking system