[v6r12] new ps and fk dfc

This PR contains a new sql schema with enforced Foreign Key, as well as stored procedure. The managers to call the various PS are also included. It also contains numerous bug fixes 
This cannot be installed with the DIRAC tool because the dirac tool assumes that all the instructions are ended with ';', which is not the case when using stored procedure