You did not specify version of Mibew you use, so I assume it's the latest 2.0.1.
Next, if you want to interact with database directly you should take a look at "istatus" and "dtmlastvisited" fields of "operator" table. At the same time I don't recommend you to work with Mibew in this way. It would be better to create a plugin that provides integration you need.