add controls; dbname, collname and count interval are configurable