added parse file, changed to sqlite