-- use sqlite db to store pins
-- improve import