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