Resync databases