Added a pg_db plugin and the beginnings of a unit library plugin.