split db-related things in loads.db
use real data in the db test
added the counts in the DB
fixed get_count
make sure the db dir is set
Merge branch 'db-counter'