PiServer: Database: Added class and made alarms databased