Fixes for database upgrade, NULL attribute on column in visitors, include file sequencing