database: do not use invoice view

using the view results in sqlite not making use of the sales index.