Fix issue #7 API is not configured before syncdb issue
Merge pull request #8 from victorlin/bugfix-api-cfg

Fix issue #7 API is not configured before syncdb issue