make db/api IMPL better