Don't fetch records if id param not provided