minor modifications to database session storage and https utility class