Created some new exceptions for the database
Changed modules.json structure to include categories
Created database class