#505 updated langstats table in models.py and added function to refresh staats with a test case