solved typos and missing query glitch on creating and updating orders