Issue with grabbing db Info with graphql for use in nextjs