quickfix for db file query