Fix problem with updating databases with old data. V2. Forgot to force int().