Can write into local database
can query time used in terms of hour of day (by querying local database)
TODO: query by network instead of local database (?)