imple db and other class