analyze.py now creates sqlite3 database from raw data