Connecting to database, Querying and Disconnecting. Makes use of objectoriented programming.