Update models to add more details to element and page

Added unique constraints to the tables for ordering