Added postgres slave support