Changed data structure, added FKs

- Changed data structure (page now references image table, because
multiple pages can have the same image, but only one image after all)
- Added FKs according to relations to prevent nasty php deletion
routines