check dependencies (and use db) in the last place
Merge pull request #26 from sir-sigurd/use-db-in-the-last-place

check dependencies (and use db) in the last place