fixed insert query