[api] fix db:setup failure without running backend