Mediation process broken out

Sample data in the db.cpp so we can see what all is in there.