limiting query to start and end date