Hopefully fixed database replication