replaced mysql with queryDB