Serverside code for SwipesExchange