Change from sqlite3 to postgres (production and test), add helper for page titles