made all SELECT variables as OPTIONAL so that all results can be pulled
while searching.