fixed db migration
refactored modules, added analytics module, made order module work again