sql to save phone and ad