Logout + update login time in DB