Add to pins database and to pins views