adding db connection to page headers