Load configuration and prepare database

Load configuration and prepare database before start sync.