5317 replaced mysql with queryDB()