Create a query object for vector_metadata table.
The database instance
A configured Query object ready to use