Fix sync db