sync db