synchronizing db