Adding php file to provide essential functionalities

cmd.php call the appropiate functions
function.php contains all the functions needed to be called in order to process the query