Between the GUI and the database is a CakePHP application with a RESTfull-like API
This means that any action the GUI does, e.g. adding a Permanent User, can be done by simply doing the API call that the GUI will be doing to complete the said action.