login/register/mainPie with db