added a function in ajax.php to create licenses and a trigger for it in base.js + index.php. Still a few more things needed