Created a class to represent a connection to the database.