[#012][sj&lyj] refactor method adding orders and details to db