Making PatchNotes work with PostgreSQL and updating some functionality