Move ranking service from frontend to backend