Helper. Created to assist in building the string used to query data