ticket:1 SyncDB embeded to wsgi_app.py -- fixed models linking