ydn-db implementation

Sorting & integration on offer details