Added Connection to the DB and wrote the GetOrphanScoutIDs body