Improved Quantum Magnetometry beyond the Standard Quantum Limit