replace mysql with queryDB(), and finish testing and cleanup