sqlite3 to obtain the filenames of selected images (over 5K)