some synchnronizations and improvde DB workflow