mark paid/free apps in db
added another break if n duplicates threshold; bugfixes