resync db