Sorry, it appears that you have taken vs 20 totally out of context. If you correctly read the passage which starts in vs19 " Again I say unto you, that if you agree on earth about anything that they may ask, it shall be done for them. vs20 For where two or three are gathered together in my name, I am there in their midst."
This is not talking about the "church". But rather about praying for something.