bug fix media database sync