feature/postgraduate-compatability

Added some initial PG views, and PG API support