Save orders

* Redact DB structure
* Add new logic
* Refactoring