CHANGE database scheme (see issue #4)

1. Add time column in host table
2. Tidy up the scheme