Use upper case for SQL.
Add transaction.
Drop tables before creating them.
Store device address as TEXT in db.

Human readable!
Update database file and sql file.