Added db connection between pages