better method for accessing attributes
Fetching orbital period
Tidies up the query code