models from the engine were not loaded first in an app hosted in Heroku