connecting the application to the database