Fixed issues with the updated schema
Updated the php data access for  the verioning.
Begin work on improving the generated PHP.