Fix vso.attrs.Time for querying databases

This PR fixes #771.