Issue #87. Complete incomplete tests.
Changes in db package.
Changed logic to reference relative scripts.