lastseen and ip in db