changed to stored proc, date parameters