integrate login/out database