add php and mysql functionality