Connecting the Application to the Database