Convert database entries for PE 3.1 and PostgreSQL

Because MySQL is no longer used. Also, there are two applications now
that make use of a DB. As such, the structure is changing slightly to
accomodate using seperate database servers for each application.