Properly typing total and wins as int in db views