Create mongo schema and prepare routes generator