map now checks activities from db.