Sync db after the config file is generated

cinder-api seems to be able to start without a proper db schema
so we still don't need to use event to notify db sync.
Merge pull request #37 from maoy/working

Sync db after the config file is generated