replace mysql with queryDB(), also added exit as this file appears to be unused