add statistics model and api action /api/statistics