major refactoring - change mongo schemas + some general improves