Fixed DB connection, getPageTitle function name