Fix dependency bug in database. Fixes #1265, #1320.
Fix dependency bug in database. Fixes #1265, #1320.

iulian787/spack,krafczyk/spack,EmreAtes/spack,mfherbst/spack,TheTimmy/spack,lgarren/spack,krafczyk/spack,EmreAtes/spack,tmerrick1/spack,skosukhin/spack,LLNL/spack,matthiasdiener/spack,LLNL/spack,iulian787/spack,lgarren/spack,matthiasdiener/spack,skosukhin/spack,tmerrick1/spack,lgarren/spack,mfherbst/spack,krafczyk/spack,matthiasdiener/spack,tmerrick1/spack,skosukhin/spack,matthiasdiener/spack,lgarren/spack,TheTimmy/spack,skosukhin/spack,mfherbst/spack,EmreAtes/spack,EmreAtes/spack,iulian787/spack,mfherbst/spack,tmerrick1/spack,lgarren/spack,TheTimmy/spack,iulian787/spack,iulian787/spack,tmerrick1/spack,LLNL/spack,skosukhin/spack,EmreAtes/spack,krafczyk/spack,LLNL/spack,krafczyk/spack,LLNL/spack,matthiasdiener/spack,mfherbst/spack,TheTimmy/spack,TheTimmy/spack