Add helper for building selection clauses for sqlite database
Add column device_id to database