big change. db class