small change to make the SQL selects more efficient.  This change needs to be done on all of the SQL select statements.