Trying to avoid multiple db calls, but not sure how