Dem mayor switches party