adding a dao layer and some tests on db
fix post anf get on placement
starting to handle root discovery