view communicate with db