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