added stats through sqlite3 database storage