[v6r8]FIX: typo( self._query -> self.db._query )

And removed unused 'time' import