fix more composer stuff, cleanup namespace use, update initDatabase and updateDatabase scripts