MDV from database

MDV from database
Changes for plotting graph
Merge branch 'phase1' of https://github.com/cirakas/ilids into phase1