Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.
Tests given right name for uniqueness. Takes the right name as
first argument and an optional right id as second argument. If the right id is given, this right won't be considered when checking for uniqueness (useful for updates). Returns boolean true if right name is unique.