db cluster implementation