added database migration

reverted changes to remove xml formatter inside webapi config and again
use ignore ReferenceLoopHandling