avoid using distinct due to SQLite
test create stats custom command