insert query fix