democify table creation & pledge choice php function