added statistics to database