fetching sun and planet data from database