user_db: seq_counter methods (3, rewrite)

Signed-off-by: Alex Dubov <oakad@yahoo.com>