replace mysql with queryDB(), but still needs work re: 5350