Comparisons SQL

Created conditional functions that will pass SQL statements over to the
client data query, based on what "comparison" the user selects.