Run DB Sync only after generating the config

Otherwise it will not be able to connect to the
database.
Merge pull request #2 from dirkmueller/release/pebbles/master

Run DB Sync only after generating the config