Database class and Sporran construction