The Church comes AFTER Scripture. The Church gets its life from the Word of God. So, if you will Christ--->Holy Spirit---->truth--->Scripture---->Church.
This is your opinion, that happens to not accord with the scripture. There was no scripture at the Pentecost. Whatever the Rock of Peter means, Christ surely did not speak of the scripture as the foundation of the Church either.
Once more, I read what is written and you theorize about it.