Refactor last seen

* remove SQL
* use update_column instead SQL ( avoid transaction and callbacks)
* extract condition to method
* use increment_counter instead SQL