read goods from local sqlite
extract SID as command-line argument