add tests and db