Refactor Express controllers, put logic inside models