Feature extraction, saving to sqlite database and creating CSV file