link database to news page and single news page