implementing a monthly query option