Bug 1043830 - 4.b/N:
Bug 1043132 - 5/N: rename private member functions.
Bug 1043132 - 6/N: remove unnecessary function names.
Bug 1043132 - 7.a/N: stitch schema upgrade functions up.
Bug 1043132 - 7.b/N: fix alignment
Bug 1043132 - 8/N: unify variable naming
Bug 1043132 - 1/N: upgrade to match current resource stats db layout.