loggin reloads in db