added DatabaseLayer, refactored Controller, add IdContainer to Model