Fix issue #7 API is not configured before syncdb issue