[test] update tests.
[misc] added db utils.