implent a simple echo server to replace mongoose