Adding db connection to Category Page