Added replication to db postgres