visitor counter update. added support for counter updating in day range + for greatest_hits tables field 'day' added unique index