added weight to sessions table and supporting code, include upgrade