api and db
more tests