minor change: added time attribute

- added time attribute to database tables (data.db)
- updated scan.py considering the time attribute