Migration to pecan

Refactor MagnetoDB API within migration to pecan lib.

Change-Id: I21fafa16724590cada40a0dfc7f26cc6eee8ed8c
Implements: blueprint migration-to-pecan
Merge "Migration to pecan"