use foreign key for parent page storing

for pages with no parent specified, `parentID` is now `null` (prior `0`)

other changes:
- removed debug code