Fixed SQL query for insert