Whitespace normalization
Refactored hardcoded table names
Creates default pages if they do not exist