added Permission class to use with db, corrected some db fields
should be a working db interaction class