now node communicates with db