replace mysql with queryDB