Don't overwrite var
Add slash between base and page ID
Handle navigating between states
Add PHP side of database loading