add last seen time
Fixed db