remove double increment
_get consistency
first bunch of package tests
pakcage: conflict/replaces checks
more tests, more db api functonality
adding missing tests/ca_db.c