Added Port class definition and supporting methods to Database class.