bugfix: missing database activity check