uploads statistics to database successfully.