login/register/mainPie with db conn