#Using sqlite to store the data of devices.
os.system('./db_init.sql') #create database and init the tables

#Using sqlite to store the data of devices.
#os.system('./db_init.sql') #create database and init the tables

Update database.py