Manage theory ordering (need migration of db)