Format insert query.