added window spawning, and will add more for the actual queries once the stored procedures are made to do them