Add statistics table to db, change config