stock query dates no longer hardcoded