Filter for database activity