Deploy database properly
Don't crash if main qml file could not be loaded