added dao layer, configured server layer.