setting connection with DB