Is that a way to sync Drupal databases
There are a couple of other options you can explore, apart from the ones you have already mentioned:

drupal sync
The present module allows synchronizing content among multiple websites.
Supported entity types: node and taxomony, menu items.

deploy
The Deploy module is designed to allow users to easily stage and preview content for a Drupal site. Deploy automatically manages dependencies between entities (like node references). It is designed to have a rich API which can be easily extended to be used in a variety of content staging situations.