Added the requirements for the fourth deliverable.
Implemented key references to other tables.
Implemented pl/pgsql functions for triggers etc.