#116: Database upgrade implemented