Fix of the Modifers in VM, from private to public
Creation of funtion in Model for Storeprocedures