sys.exit("Error: no database found")
print "Total files:", xsetbg_db.select().count()
+print "Images:", xsetbg_db.select('is_image = 1').count()
+print "Non-images:", xsetbg_db.select('is_image = 0').count()
+print "Unknown:", xsetbg_db.select('is_image IS NULL').count()
print "Shown files:", xsetbg_db.select('last_shown IS NOT NULL').count()
print "Not shown files:", xsetbg_db.select('last_shown IS NULL').count()
last_shown = xsetbg_db.select('last_shown IS NOT NULL',