converted settings ui to use wpdb