add other php function and update database