General Hilbert Stacks and Quot Schemes