Customize the database connection used for the session data.