Using a mock UNSW student database to create queries & functions in PlpgSQl, SQL and PHP