remove redis, refactor server.js