Corrected wrong SQL inserted