Correlation functions of finite XXZ model with boundaries