working php script for adding a new user or position (depends on the arguments passed  in)