Refactor dbtest, delete database in test binary