Add Exception class for being used by database queries