Fix migrations to make db:migrate run on fresh database.
Update schema.rb to reflect db:migrate from empty db: add :null => false for all timestamps.
Use modules settings from db instead of config file.
New migration to port engine settings to DB.