dont set db as private member