Added foreign keys

Added foreign keys for resource system and added a portal column for
featured resources.