started changing mysql to queryDB(), more to do